package com.romotc.qqrobot.webqq.qqInterfaceLog;

import com.romotc.qqrobot.bean.QQData;
import com.romotc.qqrobot.config.bean.QQUrlWatcherConfig;
import com.romotc.scache.RequestSpy;

public class DefaultUrl_Log implements QQUrlLogInterface {

	@Override
	public boolean logRequestSpy(RequestSpy rqSpy, QQUrlWatcherConfig config) {
		QQData qData = QQData.buildQQTransData(rqSpy);
		
		if(qData != null) {
//			qData.setUrlId(config.getId());
			qData.Save();
		}
		
		return  true;

	}

	@Override
	public boolean checkSkipLog(RequestSpy rqSpy, QQUrlWatcherConfig config) {
		// TODO Auto-generated method stub
		return false;
	}

}
